<template>
	<view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				selectedPaymentMethod: '',
				type: 0,
			};
		},
		onLoad() {
			this.$api.checklogin();
			let uid = uni.getStorageSync('uid');
			let token = uni.getStorageSync('token');
			if(!token || !uid){
				this.login();
			}
		},
		methods: {
			login(){
				uni.redirectTo({
					url: "/pages/login/login",
				})
			},
		}
	};
</script>

<style lang="scss">
	
</style>